Contents | Index | < Browse | Browse >

LETTERsetjmpULETTER Sets a long jump position.

Overview
#include <setjmp.h>
r = setjmp(buf)

int r;
jmp_buf buf;

Portability
ANSI

Description
This function sets a destination for the longjmp function by saving the current program execution mark into the buffer "buf". When calling the function always returns zero, if however, the function is terminated by a longjmp call, its result is determined by longjmp's parameters.

Returns
Zero or as specified when calling longjmp.

See also
longjmp